<div class="modal fade bs-modal-mid" id="modelContent">
	<div class="modal-dialog modal-mid">
        <div class="modal-content" style="width:960px;"></div>
    </div>
</div> 
<div class="portlet box ">
	系统支持支付类型在创建系统是已基本设置好，建议不要随意修改支付类型相关信息。
</div>

<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>数据列表</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
		<div class="actions"><a href="#modelContent" thref="/paymentType/add" class="btn white btn-sm ajax-model-get" data-toggle="modal"><i class="fa fa-plus"></i>新增 </a></div>
    </div>
    <div class="portlet-body">
    	<div class="dataTables_wrapper no-footer">
			<div class="table-scrollable">
			    <table class="table table-striped table-bordered table-hover">
				  	<thead>
						<tr>
		   		 			<th>支付类型名称</th>
		   		 			<th>简介</th>
		   		 			<th>移动端</th>
		   		 			<th>启用（PC端）</th>
							<th class="col-md-2">操作</th>
						</tr>
					</thead>
					<tbody>
					#foreach($item in $pagePaymentType.result)
		  				<tr>  
						    <td>$!item.name</td>
						    <td>$!item.intro</td>
						    <td>
						    	<input type='checkbox' #if($!item.isWap) checked #end data-size='small' class='make-switchWap'  sendid="$!{item.id}" data-on-color='success' data-off-color='warning' />
						    </td>
						    <td>
						    	<input type='checkbox' #if($!item.isPC) checked #end data-size='small' class='make-switchPc'  sendid="$!{item.id}" data-on-color='success' data-off-color='warning' />
						    </td>
			    			<td>
						    
								#if($!item.code != 'credit')
								<a class="btn green btn-outline btn-sm ajax-model-get" data-toggle="modal"
									href="#modelContent" thref="/paymentType/config?id=$!item.id&"> 
									<i class="fa fa-edit"></i>配置
								</a>
								#end
								#if(!$item.isDefult) 
								<a class="btn green btn-outline btn-sm ajax-delete" 
									href="javascript:;" thref="/paymentType/delete?id=$!item.id">
									<i class="fa fa-trash"></i>删除
								</a>
								#end
								<a class="btn green btn-outline btn-sm ajax-model-get" data-toggle="modal"
									href="#modelContent" thref="/paymentType/setPass?id=$!item.id&"> 
									<i class="fa fa-edit"></i>退款密码
								</a>
								<a class="btn green btn-outline btn-sm ajax-model-get" href="#modelContent" thref="/paymentType/edit?id=$!item.id&" data-toggle="modal">
									<i class="fa fa-edit"></i>
									修改
								</a>
						    </td>		  			
		  				</tr>
					#end
					</tbody>
				</table>
			</div>
			#set($page=$pagePaymentType)
			#set($pageUrl="/paymentType/list?&pageNo=")
			#parse("_page.htm")
		</div>
    </div>
</div>
<script src="/assets/plugins/bootstrap-select/js/components-bootstrap-select.js" type="text/javascript"></script>
<script type="text/javascript">
bootstrapSwitch.init({className:"make-switchWap",url:"paymentType/wapSwitchStatus",ontext:"是",offtext:"否"});
bootstrapSwitch.init({className:"make-switchPc",url:"paymentType/pcSwitchStatus",ontext:"是",offtext:"否"});
</script>


